﻿using Microsoft.AspNetCore.Authorization;

namespace ZeroSum.Plugin.Authentication.JwtBearer.Authorization;

/// <summary>
///     必要参数类，类似一个订单信息
///     继承 IAuthorizationRequirement，用于设计自定义权限处理器PermissionHandler
///     因为AuthorizationHandler 中的泛型参数 TRequirement 必须继承 IAuthorizationRequirement
/// </summary>
public class ZeroSumPermissionRequirement : IAuthorizationRequirement
{
    public const string Policy = "ZeroSumPolicy";
}